package cn._2dland.websocket.model.message;

/**
 * 控制报文
 * 
 * @author deadblue
 */
public class ControlMessage extends Message {

	/** 命令：未知 */
	public static final byte UNKONWN = 0x00;
	/** 命令：退出 */
	public static final byte CLOSE = 0x01;
	/** 命令：PING */
	public static final byte PING = 0x02;
	/** 命令：PONG */
	public static final byte PONG = 0x03;

	/** 控制命令 */
	private byte command = UNKONWN;

	public ControlMessage(byte command) {
		this.command = command;
	}

	/**
	 * 获取控制指令
	 * 
	 * @return
	 */
	public byte getCommand() {
		return command;
	}

}